﻿namespace Rmq.Center
{
    public class OrderPickupingChkMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }       
    }

    public class OrderPickupingChkProducer : BaseProducer<OrderPickupingChkMsg>
    {
        public OrderPickupingChkProducer()
            : base(Const.RoutingKeys.OrderPickupingChk)
        { }
    }

    public class OrderPickupingChkConsumer : BaseConsumer<OrderPickupingChkMsg>
    {
        public OrderPickupingChkConsumer()
            : base(Const.QueueNames.OrderPickupingChk, Const.RoutingKeys.OrderPickupingChk)
        { }
    }
}